﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage/Content.Master" AutoEventWireup="true"
    CodeBehind="ShowDaily.aspx.cs" Inherits="RED_NET.ContentPage.ShowDaily" Title="无标题页"
    ValidateRequest="false" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
<div align="center">
    <link rel="Stylesheet" href="../../Image_Css/NewsCss/ShowDailyCss.css" type="text/css" />

    <br />
    <div id="all">
        
            <asp:Label ID="Label_Title" runat="server" ForeColor="Black"  Width="100%" BackColor="White" Font-Size="XX-Large" Font-Bold="true"   ></asp:Label>
        <br />
        <br />
        <div id="head">
            <div id="authTime">
                <asp:Label ID="Label_Author" runat="server" ForeColor="White"></asp:Label>
                &nbsp<asp:Label ID="Label_UpdateTime" runat="server" ForeColor="White"></asp:Label>
            </div>
            <div id="DelEdit">
                <asp:LinkButton ID="LinkButton_Edit" runat="server" OnClick="LinkButton_Edit_Click"
                    ForeColor="White" Visible="false">编辑</asp:LinkButton>&nbsp<asp:LinkButton ID="LinkButton_Delete"
                        runat="server" ForeColor="White" OnClick="LinkButton_Delete_Click" Visible="false">删除</asp:LinkButton>
            </div>
        </div>
        <hr id="hr1" />
        <br />
        <br />
        <br />
        <br />
        <br />
        <a id="a1">
            <asp:Label ID="Label_Content" runat="server" Width="100%" Font-Size="XX-Large" ></asp:Label>
        </a>
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <hr id="hr1" />
        <br />
        <div id="Lab">
            <asp:Label ID="Label_Comment" runat="server" Text="评论"></asp:Label>
            &nbsp
            <asp:Label ID="Label_Read" runat="server" Text="阅读"></asp:Label>
        </div>
        <br />
        <br />
        <div id="Comment">
        <asp:DataList ID="DataList_Comment" runat="server" BorderWidth="1px" BorderColor="White"
            Width="100%" OnDeleteCommand="DataList_Comment_DeleteCommand" OnItemCreated="DataList_ItemCreated" GridLines="Horizontal">
            <ItemTemplate>
              <div id="Content" >
                        <table id="table_content">
                        
                            <tr>
                                <td id="td1">
                         
                    <asp:Image ID="avatar" runat="server" Height="70px" Width="70px" ImageUrl='<%#Eval("_AvatarUrl")%>' />
                    
                    
                                </td>
                                <td id="td2">
                                <div id="NameTime">
                                  <a  id="DivAuth">
                                  
                    <%#"\""+Eval("_UserName")+"\"" %>
                    </a>
                                  <a id="UpdTime"> 
               
                        <%#"\""+Eval("_AddTime")+"\"" %>
                        </a>
                                </div> 
                               <br>
                                    <div id="DivText">
    
                        <%#Eval("_Tent") %>
                         </div>
                                </td>
                                <td id="td3">
                        
                        <asp:LinkButton ID="LinkButton_Delete" runat="server" CommandName="delete" Text="删除"> </asp:LinkButton>
                            </td> 
                            </table>
                </div>
            </ItemTemplate>
        </asp:DataList>
        <div id="CommentArea" runat="server" style="border-width:0px;" >
            <asp:TextBox ID="TextBox_Comment" runat="server" TextMode="MultiLine" Width="400px"
                Height="180px"></asp:TextBox>

            <script type="text/javascript" src="../../ckeditor/ckeditor.js"></script>

            <script type="text/javascript">

                CKEDITOR.replace('<%=TextBox_Comment.ClientID %>')


            </script>

            <asp:Label ID="Label_Comment_Error" runat="server" ForeColor="White"></asp:Label>
            <br />
           
            <asp:LinkButton ID="Button_AddComment" Text="发表" runat="server" OnClick="Button_AddComment_Click"   BackColor="Gray" Font-Size="Large" ForeColor="White" BorderStyle="Inset" Width="60px" Height="20px" ></asp:LinkButton>
        </div>
    </div>
    </div>
    </div>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolder3" runat="server">
</asp:Content>
